#!/usr/bin/env bash
# vim: fdm=marker fmr=[[[,]]] cms=\ #%s#

main()
{
    local bin_path=$(dirname $0)
    if [ ${bin_path:0:1} != '/' ]
    then
        bin_path=$(pwd)/$bin_path
    fi
    cd $bin_path
    PATH=.:$PATH

    local program=sn_log
    local java_libdir=/usr/share/java
    local soar_classpath=../../common/java/lib/soar.jar
    export CLASSPATH=${java_libdir}/jdom.jar:${java_libdir}/xerces-j2.jar:$soar_classpath:${program}.jar
    java ${program}.server &
}

main $@
exit $?
